main.page {
    .theme-default-content {
        >div>table {
            border-collapse: collapse;
            margin: 1rem 0;
            display: block;
            overflow-x: auto;

            tr {
                border-top: 1px solid var(--c-border-dark);
            }

            tr:nth-child(2n) {
                background-color: var(--c-bg-light);
            }

            th,
            td {
                border: 1px solid var(--c-border-dark);
                padding: 0.6em 1em;
            }
        }

        >div>table {
            width: 100%;
            display: table;

            th,
            td {
                border: none;
                text-align: left;

                &:first-of-type {
                    width: 130px;
                }

                &:nth-of-type(2) {
                    width: 350px;
                }

                &:nth-of-type(3) {
                    width: 250px;
                }

                &:nth-of-type(4) {
                    width: 100px;
                }
            }

            thead {
                tr {
                    border-top: none;
                }
            }
        }

        // 目录
        >div>nav.table-of-contents {
            position: fixed;
            right: 0;
            top: 60px;
            padding-right: 10px;
            z-index: 999;
            background-color: var(--c-bg-sidebar);
            overflow-y: auto;
            max-width: 220px;
        }
    }

    // 覆盖 tinymce 的样式污染
    div[class*=language-] {

        code,
        span {
            text-shadow: none;
            background-color: transparent;
        }
    }
}


// 覆盖 vuepress 对 table 做的样式修改
table {
    border-collapse: initial;
    margin: initial;
    display: table;
    // overflow-x: initial;
    overflow: auto;
}

tr {
    border-top: initial;
}

tr:nth-child(2n) {
    background-color: initial;
}

th,
td {
    border: initial;
    padding: initial;
}